package com.knowvoyage.knowvoyageserver.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Min;
import lombok.Data;

@Schema(description = "前端传给后端的学习记录类，只需要duration参数即可，其他参数由后端自动获取")
@Data
public class LearnDTO {

    @Min(value = 1, message = "学习时长必须大于0")
    private Integer duration;
    private Long subject;
}
